<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>登录页</title>
<style type="text/css">
	#container {
		width: 1000px;
		border: solid 2px green;
		margin: 50px auto;
		padding: 30px;
	}
	
	input {
		margin: 10px 0;
	}
	
</style>
<link href="${ bp }/static/login.css" rel="stylesheet" type="text/css">
</head>
<body>
	<div id="container">
		<form action="${ bp }/user?method=login" method="post">
			用户名：
			<input type="text" name="username" value="${ user.username }">
			<br> 
			密码：
			<input type="password" name="password" value="${ user.password }">
			<br>
			<input type="text" name="captcha" placeholder="请输入验证码" style="height:40px;width:100px;"> 
			<img alt="验证码加载错误" title="点击更换" src="${ bp }/kaptcha" onclick="this.src='${ bp }/kaptcha?t='+new Date()" style="vertical-align: middle;">
			<br>
			<input type="submit" value="登录">
			<br> 
			<a href="${ bp }/user/regist.jsp">没有账号？立即注册！</a>
			<br> 
			<span style="color:red">${ message }</span>
			<br> 
		</form>
	</div>
</body>
</html>